﻿    <local:DocumentBase x:Class="WPFExcelReport.Planning"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                        xmlns:db="clr-namespace:ReflectionStudio.Core.Database;assembly=ReflectionStudio.Core"
                        xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                        xmlns:wep="clr-namespace:WPFExcelReport"
                        Height="700" Width="1024"   
                        Title="Planning"  
                        >
    <local:DocumentBase.Resources>
        <db:INTEXDataSet x:Key="iNTEXDataSet" />
        <CollectionViewSource x:Key="wASTAMMViewSource" Source="{Binding Path=WASTAMM, Source={StaticResource iNTEXDataSet}}" />
    </local:DocumentBase.Resources>
    <Grid DataContext="" Height="518" Width="815">
                       
        <GroupBox Header="生产单" Height="233" HorizontalAlignment="Left" Name="groupBox3" VerticalAlignment="Top" Width="812" Margin="1,0,0,0">
            <Grid>
                <Grid.ColumnDefinitions>
                </Grid.ColumnDefinitions>
                <Button Content="织造信息" Height="25" HorizontalAlignment="Left" Margin="15,19,0,0" Name="Weaving" 
                        Click="Weaving_Click" VerticalAlignment="Top" Width="106" />
                <Grid DataContext="{StaticResource wASTAMMViewSource}" HorizontalAlignment="Left" Margin="202,72,0,0" Name="grid1" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="WAART:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <ComboBox DisplayMemberPath="WAART" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="3" Name="wAARTComboBox" VerticalAlignment="Center" Width="120">
                        <ComboBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel />
                            </ItemsPanelTemplate>
                        </ComboBox.ItemsPanel>
                    </ComboBox>
                </Grid>
            </Grid>
        </GroupBox>
        <GroupBox Header="原料" Height="285" HorizontalAlignment="Left" Margin="1,233,0,0" Name="groupBox4" VerticalAlignment="Top" Width="813">
            <Grid>
                <Button Content="纱线库存表" Height="25" HorizontalAlignment="Left" Margin="15,18,0,0" Name="Yarn_Inventory" VerticalAlignment="Top" 
                        Click ="Yarn_Inventory_Click"  Width="106" />
            </Grid>
        </GroupBox>
    </Grid>
</local:DocumentBase>
